package com.hry.store.service.impl;

import com.hry.store.dao.ProductVersionMapper;
import com.hry.store.pojo.ProductVersion;
import com.hry.store.service.ProductVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductVersionServiceImpl implements ProductVersionService {
    @Autowired
    private ProductVersionMapper productVersionMapper;

    /**
     * 根据产品id查询产品版本号
     * @param secondCategoryId
     * @return
     */
    @Override
    public List<ProductVersion> getProductVersionBySecondCategoryId(Integer secondCategoryId) {
        List<ProductVersion> productVersionList = productVersionMapper.getProductVersionByProductId(secondCategoryId);
        return productVersionList;
    }
}
